<?php
	include_once "conf/conf.site.inc.php";
	include_once BDD_CLASS;
	include_once FUNCTIONS_FILE;
	
	if (isset($_SESSION["LOGIN"]) && $_SESSION["LOGIN"] != "") {
		redirect ("index.php");
	}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
		<meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
		<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
		<center><title><?php echo NOM_SITE ?></title></center>
		<meta name="description" content="Custom Login Form Styling with CSS3" />
        <meta name="keywords" content="css3, login, form, custom, input, submit, button, html5, placeholder" />
        <meta name="author" content="Codrops" />
        <link rel="shortcut icon" href="images/favicon.ico"> 
        <link rel="stylesheet" type="text/css" href="css/formulaire_connexion.css" />
		<script src="js/modernizr.custom.63321.js"></script>
		<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
		<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="logo">
	<h1><a href="#"><?php echo NOM_SITE ?></a></h1>
</div>
<div id="menu">
	<ul>
		<li class="first"><a href="index.php" accesskey="1" title="">Acceuil</a></li>
		<li><a href="inscription.php" accesskey="2" title="">Inscription</a></li>
		<?php if (isset($_SESSION["LOGIN"]) && $_SESSION["LOGIN"] != "") {echo '<li><a href="logout.php" accesskey="6" title="">Déconnexion</a></li>';}?>
	</ul>
</div>
<hr />
<div id="banner"><img src="images/img04.jpg" alt="" width="960" height="147" /></div>
<!-- start page -->
<div id="page">
	<!-- start content -->
	<div id="content">
		<div class="post">
			<h2 class="title"><a href="#">Welcome to FrozenAge</a></h2>
			<div class="entry">
				<h3>A free CSS template by NodeThirtyThree for Free CSS Templates</h3>
				<img src="images/img06.jpg" alt="" width="132" height="72" class="left" />
				<p>This is <strong>FrozenAge</strong>, a free, fully standards-compliant CSS template designed by <a href="http://www.nodethirtythree.com/">NodeThirtyThree</a> for <a href="http://www.freecsstemplates.org/" rel="nofollow">FCT</a>. The photos in this design are from <a href="http://www.pdphoto.org/">PDPhoto.org</a>.</p>
				<p>This free template is released under a <a href="#">Creative Commons Attributions 2.5</a> license, so you’re pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact. Aside from that, have fun with it :)  This design is also available as a <a href="http://www.freewpthemes.net/preview/frozenage/">WordPress theme</a> at <a href="http://www.freewpthemes.net/">Free Wordpress Themes</a>.</p>
			</div>
			<p class="meta">Posted on November 5, 2007 by <a href="#">Someone</a> &nbsp;|&nbsp; <a href="#">32 comments</a></p>
		</div>
		<div class="post">
			<h2 class="title"><a href="#">Blandit volutpat consequat</a></h2>
			<div class="entry">
				<h3>Prom nec magna tempus lorem ipsum dolor</h3>
				<p>Proin nec magna. Proin nec massa sit amet purus congue molestie. Aliquam erat volutpat. Nulla pellentesque dolor non tellus. Duis vel elit sit amet ipsum vehicula varius. Vestibulum ante ipsum primis in <a href="#">faucibus orci luctus et ultrices</a> posuere cubilia Curae; Suspendisse rhoncus. Nunc est. Praesent interdum lectus quis neque. Aliquam eros. Nulla fermentum dolor eget mi. Cras diam sapien, auctor non, malesuada at, tristique id, dui. Aenean congue ante. </p>
				<p>Proin nec magna. Proin nec massa sit amet purus congue molestie. Aliquam erat volutpat. Nulla pellentesque dolor non tellus. Duis vel elit sit amet <a href="#">ipsum vehicula varius</a>. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae.</p>
			</div>
			<p class="meta">Posted on November 5, 2007 by <a href="#">Someone</a> &nbsp;|&nbsp; <a href="#">32 comments</a></p>
		</div>
	</div>
	<!-- end content -->
	<!-- start sidebar -->
	<div id="sidebar">
		<ul>
			<li id="calendar">
				<table summary="Calendar">
					
				</table>
			</li>
			
			<li>
				<section class="main">
					<form class="form-1" method="POST" action="index.php">
						<p class="field">
							<input type="text" name="login" placeholder="Username or email">
							<i class="icon-user icon-large"></i>
						</p>
							<p class="field">
								<input type="password" name="password" placeholder="Password">
								<i class="icon-lock icon-large"></i>
						</p>
						<p class="submit">
							<button type="submit" name="submit"><i class="icon-arrow-right icon-large"></i></button>
						</p>
						<?php
							if (isset($_GET["badlogin"]) && $_GET["badlogin"] == 1) {
								echo "<center class='badlogin'>Login ou Mot de Passe incorrect. Veuillez Réessayer</center>";
							}
						?>
					</form>
				</section>
			</li>
			
		</ul>
	</div>
	<!-- end sidebar -->
</div>
<!-- end page -->
<div id="footer">
	<p class="legal"><?php echo FOOTER ?></p>
</div>
</body>
</html>
